-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
M2-6044: Submit Take Now Params #441
Conversation
455e1a8
to
20d4334
Compare
ace3725
to
10598bf
Compare
10598bf
to
d1271c6
Compare
@ChaconC what's in the body of the error response? |
Looks like a problem when using take now on a Limited account. Full accounts work ok |
I'm not sure what the behaviour of the API should be in that case, but this flow doesn't support using a limited account as the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @sultanofcardio, I'm currently struggling to get this to work. There may be some user error on my part, so I'm wading through that currently. But I've also discovered that it seems sourceSubjectId
may not always be getting correctly initialized on the multiInformantState
when the quiz starts (so not related to the code in this PR). It's time-consuming to figure out what's going on, so please bear with me. I just wanted to let you know before you merge so that in case I've discovered a bug, you can include the fix in this PR.
I'll keep you posted!
… flow We can get stuck in a weird state where the values in the state won't get updated, even if the new values from the params are different. By also comparing the values themselves, we can break out of this state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After troubleshooting and figuring creating a workaround for a BE bug as mentioned in Slack, and testing again with your changes, all tests are now working. Thanks @sultanofcardio! 💪🏻
📝 Description
🔗 Jira Ticket M2-6044
This PR updates the code that submits the activity responses to
/answers
to include the values fortarget_subject_id
andsource_subject_id
. The values are only included if theenableMultiInformant
feature flag is enabled.📸 Screenshots
N/A
🪤 Peer Testing
Note
This feature depends on the
enableMultiInformant
feature flag. If it it not already enabled, you can manually enable it here like so:features.enableMultiInformant = true;
Note
There's an in-progress API patch that this PR depends on. If ChildMindInstitute/mindlogger-backend-refactor#1264 is still open when you are reviewing this PR, please use that branch as the basis for your API. Otherwise, you should use the
feature/multiinformant-metapod
branchFollow the peer testing steps in #438 and complete the activity that is opened with the network tab of dev tools open.
Look for the answer submission request and confirm that it includes the two fields
sourceSubjectId
andtargetSubjectId
:✏️ Notes
N/A